package org.ala.tcp_feign_client.spring.feign.clients.impl;

import java.util.function.Consumer;

import org.ala.tcp_feign_client.spring.feign.clients.AbstractTcpFeignClientHolder;
import org.ala.tcp_feign_common.msg.biz_resp.BizRespByteMessage;


/**
 * 默认的hosts解析
 *
 * @author 骆毅(ala)
 * @date 2024年4月22日
 */
public class HostsTcpFeignClientHolder extends AbstractTcpFeignClientHolder {

	public HostsTcpFeignClientHolder(String suffix, Consumer<BizRespByteMessage> respCallback) {
		super(suffix, respCallback);
	}

	
	/**
	 * @param	hosts	${host}:{port}:${username}:${password};${host}:{port}:${username}:${password};
	 */
	@Override
	protected String[] allHosts(String hosts) {
		String[] ss = hosts.split(";");
		return ss;
	}

}
